import service from "@/utils/request.js"
/**
 * 创建分类
 */
export function categoryCreate(data = {}){
    return service.request({
        url: "/api/v1/categorycreate",
        method: "post",
        data
    })
}

/**
 * 分类列表
 */
export function categoryLists(data = {}){
    return service.request({
        url: "/api/v1/categorylists",
        method: "post",
        data
    })
}

/**
 * 修改分类
 */
export function categoryUpdate(data = {}){
    return service.request({
        url: "/api/v1/categoryupdate",
        method: "post",
        data
    })
}


/**
 * 状态更新
 */
export function categoryStatus(data = {}){
    return service.request({
        url: "/api/v1/categorystatus",
        method: "post",
        data
    })
}


/**
 * 状态更新
 */
export function categoryDelete(data = {}){
    return service.request({
        url: "/api/v1/categorydelete",
        method: "post",
        data
    })
}
/**
 * 所有分类
 */
export function categoryall(data = {}){
    return service.request({
        url: "/api/v1/categoryall",
        method: "post",
        data
    })
}
